import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const routes = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import(/* webpackChunkName: "Home" */ '@/pages/home/home')
  },
  {
    path:'/user',
    name: 'User',
    component: () => import(/* webpackChunkName: "User" */ '@/pages/user/user')
  }
];

export default new Router({
  routes
});
